export class ToolsItem {

    constructor(sf, item) {
        this.dom = document.createElement('div');
        this.dom.className = 'sf-tools-item';
        this.dom.innerHTML = item.name;
        this.dom.onclick = e => {
            sf.rect(item);
        };
    }

    getDom() {
        return this.dom;
    }
}